package com.example.demo.mapper;

import com.example.demo.entity.AcceptInfo;
import com.example.demo.entity.AcceptInfoExample;
import java.util.List;

import com.example.demo.entity.SendInfo;
import org.apache.ibatis.annotations.*;

public interface AcceptInfoMapper {
    //订单模块begin
    @Delete("delete from accept_info where order_id = #{order_id}")
    int deleteByPrimaryKey(String order_id);

    @Insert("insert accept_info (order_id,accept_id,accept_address) values(#{record.order_id},#{record.accept_id},#{record.accept_address})")
    int insert(@Param("record") AcceptInfo record);

    @Update("update accept_info" +
            "    set accept_time = #{record.accept_time}," +
            "      accept_address = #{record.accept_address}"+
            "    where order_id = #{record.order_id}")
    int updateByPrimaryKey(@Param("record") AcceptInfo record);


    @Select("select * from accept_info")
    List<AcceptInfo> find_all_accept_info();
    @Select("select * from send_info")
    List<SendInfo> find_all_send_info();

    //订单模块end


}














